package com.life.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;


public class ButtonAdapter extends AbstractAdapter implements ActionListener
{
    public JButton buttonRef = null;
	
	public ButtonAdapter(JButton button)
	{
		buttonRef = button;
		buttonRef.addActionListener(this);
	}
	
	public void actionPerformed(ActionEvent evt)
	{
		setChanged();
		notifyObservers(this);
	}

	public void setEnabled(boolean val) {
		buttonRef.setEnabled(val);
		
	}
	
	public Object get()
	{
		return null;
	}

	@Override
	public void set(Object data) {
		// TODO Auto-generated method stub
		
	}
}
	
